home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Digitalfoto 118
/
Digitalfoto 118.iso
/
mac
/
webs.swf
/
scripts
/
frame_2
/
PlaceObject2_154_32
/
CLIPACTIONRECORD onClipEvent(load).as
Wrap
Text File
|
2007-09-27
|
967b
|
38 lines
onClipEvent(load){
var s = this.mov_thumb;
var f = _parent.mov_frame_01;
var t = _parent.txt_display;
init = function()
{
with(f)
{
_x = t._x + 15;
_y = t._y + 8;
_height = t._height;
_width = t._width + 4;
}
with(this)
{
s._height = f._height / 7;
_y = f._y + 12;
_x = f._x + f._width + 6;
mov_track._height = btn_bg._height = f._height - 24;
s.int_min = s._y;
s.int_max = Math.ceil(mov_track._height - s._height);
}
this.int_scrollDist = Math.ceil(this.mov_track._height - s._height);
};
this.btn_bg.onPress = function()
{
boo_scrollClk = 1;
};
this.btn_bg.onRelease = this.btn_bg.onReleaseOutside = function()
{
boo_scrollClk = 0;
};
this.onEnterFrame = function()
{
t.scroll = Math.round(s._y / int_scrollDist * t.maxscroll);
};
}